package at.fhooe.stefanirndorfer.sound;

import at.fhooe.stefanirndorfer.effects.Reverb;


/**s
 * @author Stefan Irndorfer
 *
 */
public class SimpleSoundSoundPlayer extends SoundPlayer{
	
	
//	private float wNorm;
//	private float hNorm;
	
	public SimpleSoundSoundPlayer(SoundManager sm, String[] soundIds, int wWidth, int wHeight, double posX, double posY ){
		super(sm, soundIds, posX, posY, wWidth, wHeight);
//		wNorm = 2f/wWidth;
//		hNorm = 2f/wHeight;
				
		//initSourcePosition(posX-wWidth/2, posY - wHeight/2);
		preloadSounds();
	}



	@Override
	public void preloadSounds() {
		sm.loadSounds(soundIdsStrings);
	}



	@Override
	public void pause(String id) {
		// TODO Auto-generated method stub
		
	}



	@Override
	public void stop(String id) {
		// TODO Auto-generated method stub
		
	}



	/**
	 * this calculation is in 2D only in first place
	 * @param cr
	 * @param sm
	 */
	public double calculateDistancesToListener() {
		return OpenALUtil.calcEuclDist(this.sourcePos, sm.getListenerPosition()); 
	}

}
